package com.foreveross.dao;

import java.util.List;

import com.foreveross.vo.HrHouses;
import com.foreveross.vo.SysMenu;


public interface SysMenuManagerDAO  {	
	
	public <T extends Object> void save(T entity) throws Exception;
	
	public <T> void remove(T entity) throws Exception;

	public Object findById(Class clazz,String id) throws Exception;
	
	public Object findByIntId(Class clazz,int id) throws Exception;
	
	public <T extends Object> T updateObject(T t) throws Exception;
	
	public <T extends Object> T updateObject(T t,String id) throws Exception;
	
	public List<SysMenu> findSysMenuList() throws Exception;
	
	public List<SysMenu> findSysMenuList(String roleId) throws Exception;
	
	public List<SysMenu> findSysMenuList(String name,int pageIndex,int pageSize) throws Exception;
	
	public long findSysMenuListCount(String name) throws Exception;

	public void deleteSysMenu(String id) throws Exception;

	public List<SysMenu> findSysMenuList(String pid, String roleid)throws Exception;
	
	public List<Object []> findRoleMenuList(String pid,String roleId) throws Exception;
	
	public String getMaxMenu(String pmenuId) throws Exception;

    public List findroleHrHouse(String roleid) throws Exception;
	
}